import axios from '@/utils/axios';

const state = {};
const mutations = {
  SET_USER_INFO: (state: any, userInfo: any) => {},
};
const actions = {
  async getCity({}, parentID:string) {
    const { data } = await axios({
      url: '/api/city/list',
      method: 'get',
      params: {
        //字符串类型； 上级城市ID，100000为国家ID
        parentID: parentID || '100000',
      },
    });
    return data;
  },
};

export default {
  namespaced: true,
  state,
  mutations,
  actions,
};
